package com.functionx.rs.web.controller;

import com.functionx.rs.contract.IUpload;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/upload")
public class UploadController {

    @Autowired
    private IUpload uploadService;

    @RequestMapping("/image")
    public Object image() {
        return uploadService.work();
    }

}
